package com.preguicoso.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.History;
import com.google.gwt.user.client.ui.RootPanel;
import com.preguicoso.client.error.ErrorMsg;
import com.preguicoso.client.login.LoginService;
import com.preguicoso.client.login.LoginServiceAsync;

/**
 * 
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Preguicoso extends RouterHistory implements EntryPoint {

	private final LoginServiceAsync loginService = GWT
			.create(LoginService.class);
	@Override
	public void onModuleLoad() {
		
		//ErrorMsg msg = new ErrorMsg();
		//RootPanel.get("error").add(msg);
		//RootPanel.get("cadastroEstabelecimento").add(new listaCategoria());

		final String Token = History.getToken();
		if (Token.length() == 0) {
			//History.newItem("index");
		}
		super.routerHistory();
	}

}
